package com.epam.utils;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

import org.apache.log4j.Logger;

public class Interceptor {

	private static Logger log = Logger.getLogger(Interceptor.class);
	
	@AroundInvoke
	public Object logCall(InvocationContext context) throws Exception {
		log.debug("Invoking method: " + context.getMethod());
		return context.proceed();
	}
}
